<div class="form_container">
    <form name="register_form" method="post" action="<?php echo url_for('@register', null, true) ?>">

        <?php echo $form->renderHiddenFields() ?>

        <h1>Bootcamp Application</h1>

        <?php include_partial('global/flashes') ?>

        <div class="user_info">
            <?php include_partial('field_groups', array('form' => $form['user'], 'group_name' => 'Main contact details', 'fields' => array('firstname', 'lastname', 'email', 'address', 'locality', 'postal_code', 'state', 'birthday', 'country_id', 'timezone_id'))) ?>
        </div>

        <div class="user_additional_info">
            <?php include_partial('web_presence', array('social_media_forms' => $form['social_media_selector'], 'group_name' => 'web presence')) ?>
            <?php include_partial('field_row', array('form' => $form['user'], 'field_name' => 'biography')) ?>
        </div>

        <div class="company_info">
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'Company details', 'fields' => array('company_name', 'founded_at', 'tagline', 'website', 'employees'))) ?>
        </div>

        <div class="company_additional_info">
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'about', 'fields' => array('about', 'short_pitch'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'why we are so good?', 'fields' => array('description'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'our markets', 'fields' => array('markets'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'customers', 'fields' => array('customer'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'customer problem', 'fields' => array('problems', 'solutions'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'competitive landscape and advantages', 'fields' => array('landscapes', 'advantages'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'partner plan', 'fields' => array('partner_plan'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'business and revenue model', 'fields' => array('business_model'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'sales and marketing strategy', 'fields' => array('strategy'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'affiliate plan', 'fields' => array('affiliate_plan'))) ?>
            <?php include_partial('field_groups', array('form' => $form['company'], 'group_name' => 'additional details', 'fields' => array('additional_details'))) ?>
        </div>

        <hr class="separator" />

        <label for="terms" class="right" id="terms_container">
            <input type="checkbox" id="terms" />
            <span>I acept the </span>
            <a href="#terms" id="terms_link">Terms</a>
        </label>
        <input type="submit" onclick="if(!this.form.terms.checked) { alert('Must acept terms!'); return false; }" value="send application" class="blue-button right clear"/>
        <br class="clear" />
    </form>
</div>